package com.example.LibrarySystem.pojo.dto;

import java.util.Date;

public class BorrowingDto {
    private Integer id;

    private String bookName;
    private String userName;
    private String userSno;

    private String imgUrl;

    private boolean isReturn;
    private Date returnDate;
    private Date borroDate;
    private Integer status;

    public BorrowingDto() {
    }

    public BorrowingDto(Integer id, String bookName, String userName, String userSno, String imgUrl, boolean isReturn, Date returnDate, Date borroDate, Integer status) {
        this.id = id;
        this.bookName = bookName;
        this.userName = userName;
        this.userSno = userSno;
        this.imgUrl = imgUrl;
        this.isReturn = isReturn;
        this.returnDate = returnDate;
        this.borroDate = borroDate;
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserSno() {
        return userSno;
    }

    public void setUserSno(String userSno) {
        this.userSno = userSno;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public boolean isReturn() {
        return isReturn;
    }

    public void setReturn(boolean aReturn) {
        isReturn = aReturn;
    }

    public Date getReturnDate() {
        return returnDate;
    }

    public void setReturnDate(Date returnDate) {
        this.returnDate = returnDate;
    }

    public Date getBorroDate() {
        return borroDate;
    }

    public void setBorroDate(Date borroDate) {
        this.borroDate = borroDate;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "BorrowingDto{" +
                "id=" + id +
                ", bookName='" + bookName + '\'' +
                ", userName='" + userName + '\'' +
                ", userSno='" + userSno + '\'' +
                ", imgUrl='" + imgUrl + '\'' +
                ", isReturn=" + isReturn +
                ", returnDate=" + returnDate +
                ", borroDate=" + borroDate +
                ", status=" + status +
                '}';
    }
}
